package com.ye.personnel.api.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author: yeubo
 * @Date: 2024/1/2 11:43
 */
@Data
public class AdminUserSetDto {

    @ApiModelProperty("用户id")
    @NotEmpty(message = "请选择编辑的用户",groups = Update.class)
    private String adminUserId;

    @ApiModelProperty("登录账号")
    @NotEmpty(message = "登录账号不能为空")
    private String userName;

    @ApiModelProperty("用户姓名")
    @NotEmpty(message = "用户姓名不能为空")
    private String nickName;

    @ApiModelProperty("所属机构")
    @NotEmpty(message = "请选择账号所属机构")
    private String departmentId;

    @ApiModelProperty("用户类型")
    @NotNull(message = "请选择用户类型")
    private Integer userType;

    @ApiModelProperty("账号状态 0 启用 1 禁用")
    private Integer disabled;
}
